package com.googlecode.grima.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.googlecode.grima.base.GenericDao;
import com.googlecode.grima.base.GenericEntityService;
import com.googlecode.grima.base.GenericEntityServiceImpl;
import com.googlecode.grima.dao.SystemDao;
import com.googlecode.grima.domain.System;

@Service("systemService")
public class SystemService extends GenericEntityServiceImpl<com.googlecode.grima.domain.System, Long> implements GenericEntityService<com.googlecode.grima.domain.System, Long> {

	protected SystemDao systemDao;

	@Autowired
	public void setSystemDao(SystemDao systemDao) {
		this.systemDao = systemDao;
	}

	@Override
	public GenericDao<com.googlecode.grima.domain.System, Long> getDao() {
		return systemDao;
	}

	@Override
	public com.googlecode.grima.domain.System getNew() {
		return new com.googlecode.grima.domain.System();
	}

	@Override
	public com.googlecode.grima.domain.System getNewWithDefaults() {
		return getNew();
	}

	@Override
	@Transactional
	public void save(System system) {
		super.save(system);
	}

	
}
